package com.hzy.springdemo;

/**
 * @Package: PACKAGE_NAME
 * @ClassName: com.hzy.springdemo.HelloSpring
 * @Author: 862982795
 * @CreateTime: 2021/07/02 17:37
 * @Description:
 */
public class HelloSpring {
    // 定义 hello 属性，该属性的值将通过 Spring 框架进行设置
    private String hello = null;

    public String getHello() {
        return hello;
    }

    public void setHello(String hello) {
        this.hello = hello;
    }

    /**
     * 输出方法，从 Spring 配置文件中获取属性并输出
     */
    public void print() {
        System.out.println("Spring say:," + this.getHello() + "!");
    }

}
